package com.llsydn.demo.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * @author lilinshen
 * @title 显示详情的fragment
 * @description 请填写相关描述
 * @date 2018/10/12 8:50
 */
public class DetailFragment extends Fragment {
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        TextView textView = new TextView(getActivity());
        //取出保存的数据
        String detail = getArguments().getString("DETAIL");
        //设置
        textView.setText(detail);
        return textView;
    }
}
